#ifndef ACCOUNTMANAGER_H
#define ACCOUNTMANAGER_H

#include "Account.h"
#include "DBStruct.h"
#include "Debug.h"
#include <map>

using namespace std;

class AccountManager
{
	public:
		AccountManager();
		~AccountManager();


		// 是否注册
		bool isRigster(string _user);

		// 注册帐号
		bool Rigster(string _user, string _pwd);

		// 验证帐号
		int Verification(string _user, string _pwd, int& _userId);

		bool Cache(const tUser& _tUser);


	protected:
	private:

		map<int, Account> m_AccountMap;

};

#endif // ACCOUNTMANAGER_H
